export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('@/views/Home'),
    name: 'home',
    meta: { title: '首页' }
  },
  {
    path: '/error',
    component: () => import('@/views/Error.vue'),
    name: 'error',
    meta: { title: '出错了', needLogin: false }
  },
  {
    path: '/401',
    component: () => import('../views/401.vue'),
    name: 'unauthorized',
    meta: { title: '无权限', needLogin: false }
  },
  {
    path: '/404',
    component: () => import('../views/404.vue'),
    name: 'notFound',
    meta: { title: '页面不存在', needLogin: false }
  },
  {
    path: '*',
    redirect: '/404'
  }
];
